using System;
using Microsoft.SPOT;

using EmbeddedWebserver.Core;
using EmbeddedWebserver.Core.Handlers.Abstract;

namespace HttpIntfLib
{
    class AnalogDriver:HandlerBase
    {
        #region Non-public members

        /* 
         * analog?pin=[0-5]: reading 
         * Analog only for reading 
         */
        protected override void ProcessRequestWorker(HttpContext pContext)
        {
            pContext.Response.ResponseBody = "PwmDriver";
            /*
            Random _generator = new Random();
            int retval = _generator.Next();
            pContext.Response.ResponseBody = "{ \"value\": " + retval + "}";
            pContext.Response.ContentType = "application/json";
             * */

        }

        #endregion

        #region Constructors

        public AnalogDriver() : base(HttpMethods.GET) { // TBD
        }

        #endregion
    }
}
